<template>
  <div class="finish">
    <div class="finish-title">
      <h3>完结推荐</h3>
    </div>
    <div class="finish-content">
      <a>
        <img src="../../static/images/finish1.webp" alt="">
        <div>
          <p>漂流少年</p>
          <p>看不懂但大为震撼</p>
        </div>
      </a>
      <a>
        <img src="../../static/images/finish2.webp" alt="">
        <div>
          <p>漂流少年</p>
          <p>看不懂但大为震撼</p>
        </div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name:'recommendComp'
}
</script>

<style lang="less" scoped>
.finish{
  width: 260px;
  height: 240px;
  float: right;
  display: flex;
  flex-direction: column;
}
.finish-title{
  height: 24px;
  line-height: 24px;
  padding-bottom: 20px;
  h3{
    margin: 0;
    padding: 0;
    float: left;
    font-size: 18px;
    font-weight: 400;
  }
}
.finish-content{
  display: flex;
  justify-content: space-between;
  height: 166px;
  padding-bottom: 30px;
  a{
    position: relative;
    img{
      border-radius: 4px;
      width: 120px;
      height: 166px;
    }
    div{
      font-size: 12px;
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(0,0,0,.6);
      line-height: 20px;
      color: #fff;
      padding: 5px 0;
      p{
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        padding: 0 10px;
      }
    }
  }
}
</style>